package com.jy.controller;

import com.jy.model.User;
import com.jy.service.UserInfoService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/5/5 0005.
 */
@Controller
@RequestMapping("/test")
public class TestController {
    @Resource
    UserInfoService userInfoService;
    @RequestMapping("/test")
    public
    @ResponseBody
    String toView(HttpServletRequest request,User user) {
        /*User users=userInfoService.getUser(user);
        JSONObject jsonObject=JSONObject.fromObject(users);*/
        return "123456";
    }
  /*  @Resource
    UserInfoService userInfoService;
    @RequestMapping("/dolphin")
    public @ResponseBody
    User dologin(User user){
        User users=userInfoService.getUser(user);
        return  users;
    }*/
}
